<template>
  <div class="gh-detail1">
    <div
      class="gh-detail1-item"
      v-for="(item, index) of config"
      :key="index"
    >
      <div class="gh-detail1-item-name">
        {{ item.name }}
      </div>
      <div
        class="gh-detail1-item-val"
        v-for="(detail, deIndex) of item.detail"
        :key="deIndex"
      >
        {{ detail }}
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    config: {
      type: Array
    }
  }
}
</script>
<style lang="scss" scoped>
.gh-detail1 {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: url('~@/assets/img/overview/td-mid-bg.png')
    no-repeat;
  background-size: 100% 100%;
  &-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    &-name {
      font-size: 14px;
      line-height: 14px;
      font-weight: 500;
      color: #4c565c;
      margin-bottom: 10px;
    }
    &-val {
      font-size: 12px;
      line-height: 12px;
      font-weight: 500;
      color: #000000;
      margin-bottom: 5px;
      &:last-child {
        margin-bottom: 0px;
      }
    }
  }
}
</style>
